/**
 * Copyright 2007, Neusoft
 */
package com.vito.framework.base.exception;

import com.vito.support.ResultEnum;

public class CommonException extends RuntimeException {
	    private static final long serialVersionUID = 0xc1a865c45ffdc5f9L;

	    private ResultEnum resultEnum;

	    public CommonException(ResultEnum resultEnum) {
	        super(resultEnum.getMessage());

	        this.resultEnum = resultEnum;
	    }

	    public CommonException(ResultEnum resultEnum, Throwable cause) {
	        super(resultEnum.getMessage(), cause);

	        this.resultEnum = resultEnum;
	    }

	    public ResultEnum getResultEnum() {
	        return resultEnum;
	    }

	    public CommonException(String message) {
	        super(message);
	    }

	    public CommonException(Throwable throwable) {
	        super(throwable);
	    }

	    public CommonException(Throwable throwable, String message) {
	    	super(message,throwable);
	    }

	}
